/*
 * LectorSudoku.c
 *
 *  Created on: Jun 20, 2009
 *      Author: gianpaolo
 */

#include "LectorSudoku.h"

int dimention = 9;

void leerSudoku(char* string, int** table) {
	int i,j;
	int leyendo;
	for (i=0; i<dimention; i++){
		for (j=0; j<dimention; j++){
			leyendo = string[i*9+j];
			if(leyendo == 46) table[i][j] = 0;
			else table[i][j] = leyendo-48;
		}
	}
}
